package io.renren.modules.generator.dao;

import io.renren.modules.generator.entity.FriendsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * HR关系表; InnoDB free: 10240 kB
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-07-14 13:56:25
 */
@Mapper
public interface FriendsDao extends BaseMapper<FriendsEntity> {

    List<Map<String,Object>> getList(@Param("id") Long id,@Param("username") String username);
    List<Map<String,Object>> getList2(@Param("id") Long id,@Param("username") String username);
    List<Map<String,Object>> msgList(Long rid);
    int add(@Param("sid")Long sid,@Param("rid")Long rid,@Param("friMsg")String friMsg);
    List<Map<String,Object>> friendListByMobile(String mobile);
    int updateState(@Param("sid")Long sid,@Param("rid")Long rid,@Param("friState")Long friState );
    FriendsEntity findFriByids(@Param("sid")Long sid,@Param("rid")Long rid);
    List getReceiverList(Long userId);
    List getSenderList(Long userId);
}
